package com.example.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class Likes {
    Integer id;//	bigint	id	主键
    Integer uId;//bigint	点赞人id	外键
    Integer postId;//	bigint	帖子id	外键
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    LocalDateTime createTime;//	datetime	创建时间
    @TableField(value = "update_time",fill = FieldFill.UPDATE)
    LocalDateTime updateTime;//	datetime	修改时间
}
